package com.javaee.ch09.dao;


import com.javaee.ch09.common.base.GenericDao;
import com.javaee.ch09.entity.Reader;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 数据访问对象（DAO）类，用于管理 Book 实体对象。 继承自 GenericDao，提供添加、删除、查询和更新 Book 对象的基本功能。
 */
@Component
public class ReaderDao extends GenericDao<Reader> {

    /**
     * 初始化 图书数据集合
     */


    public ReaderDao() {
        this.addEntity(new Reader("1002", "李四", "女", "13987654321", "lisi@example.com"));
        this.addEntity(new Reader("1001", "张三", "男", "13812345678", "zhangsan@example.com"));
        this.addEntity(new Reader("1002", "李四", "女", "13987654321", "lisi@example.com"));
        this.addEntity(new Reader("1003", "王五", "男", "13755556666", "wangwu@example.com"));
        this.addEntity(new Reader("1004", "赵六", "女", "13699998888", "zhaoliu@example.com"));
    }



}
